package com.leps.nq.tx.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 点位区段表
 * </p>
 *
 * @author hex
 * @since 2022-07-23
 */
@Getter
@Setter
@TableName("tx_section")
@ApiModel(value = "Section对象", description = "点位区段表")
public class Section implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("区段ID")
    @TableId(value = "section_id", type = IdType.AUTO)
    private Integer sectionId;

    @ApiModelProperty("区段名称")
    private String sectionName;

    @ApiModelProperty("PLC大类别（防腐/泡排）")
    private String plcType1;

    @ApiModelProperty("序号")
    private Integer sort;

    @ApiModelProperty("是否默认(0=否, 1=是), 单泵默认使用该区段")
    private Boolean isDefault;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建者")
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新者")
    private String updateBy;
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("删除标志 (0存在 1删除)")
    @TableLogic
    private Integer delFlag;


}
